package com.bruan.d4_printstream;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintStream;
import java.nio.charset.Charset;

public class PrintTest {
    public static void main(String[] args) {
        try(PrintStream ps = new PrintStream("file-io-app\\bruan_printstream.txt", Charset.forName("GBK"));) {
            ps.println(75);
            ps.println(32);
            ps.println("dwdwdwdw");
            ps.println(75);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
